<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/

$q = $_GET["q"];
include '../../../../readcookie.php';
include '../../../../db.php';
//include 'tracebackdrag.php';

$tagmenu = "SELECT TagMenu.tmID, Tag.tagNAME FROM TagMenu, Tag WHERE TagMenu.tmTAGID = Tag.tagID AND tmMENUID = '" . $q . "'";



$tmres=mysql_query($tagmenu);


$cntres = mysql_num_rows($tmres);

if ($cntres > 0){
    

    while($row=mysql_fetch_array($tmres)) {
        $id = $row['tmID'];
        $thing = $row['tagNAME'];
        echo '<li id="listItem_', $id ,'"><img src="jquery/drag/arrow.png" alt="move" width="16" height="16" class="handle" /><strong>', $thing, '</strong></li>';
        
    }
  

   
}else {
    echo "No Tags assigned to this Menu";
}

?>
